package czk.concrent.lockSupport;

import java.util.concurrent.locks.LockSupport;

/**
 * @Author:ChenZhangKun
 * @Date: 2022/9/19 15:24
 */
public class LockSupportDemo1 {
    public static void main(String[] args) {
        System.out.println(123);

        // 阻塞当前线程与park()方法一样多了一个Object参数。用来记录导致线程阻塞的阻塞对象，方便进行问题排查
        LockSupport.park(LockSupportDemo1.class);
        System.out.println(234);
    }
}
